export function wrapText(text = '', wrapIndex = 8) {
  // if (text.length<=wrapIndex) {
  return text
  // }
  let length = text.length
  let lineCount = Math.ceil(length / wrapIndex)
  let arr = []
  for (let i = 0; i < lineCount; i++) {
    arr.push(text.substr(i * wrapIndex, wrapIndex))
  }
  return arr.join('\n').trim()
}
